<?php
/**
 * Created by PhpStorm.
 * @author : [zhuangze]
 * @Date: 18/8/15
 * @Time: 18:05
 */
namespace app\admin\model;

use app\common\model\Base;

class StoryItem extends Base {

    public function getTypeArr(){
        return [
            '0' => '图文',
            '1' => '视频',
            '2' => '超链接',
        ];
    }

    public function getTypeAttr($value){
        $typeArr = $this->getTypeArr();
        return $typeArr[$value];
    }

}